import request from '@/utils/request'

// 查询省级ip段列表
export function listTotalsegment(query,rou) {
  return request({
    url: '/ipmanagement/totalsegment/list/'+rou,
    method: 'get',
    params: query
  })
}

// 查询省级ip段详细
export function getTotalsegment(id) {
  return request({
    url: '/ipmanagement/totalsegment/' + id,
    method: 'get'
  })
}

// 新增省级ip段
export function addTotalsegment(data,rou) {
  return request({
    url: '/ipmanagement/totalsegment/'+rou,
    method: 'post',
    data: data
  })
}

// 修改省级ip段
export function updateTotalsegment(data,rou) {
  return request({
    url: '/ipmanagement/totalsegment/'+rou,
    method: 'put',
    data: data
  })
}

// 删除省级ip段
export function delTotalsegment(id) {
  return request({
    url: '/ipmanagement/totalsegment/' + id,
    method: 'delete'
  })
}
